//设置mongo表中索引的脚本

//mongo dbname
//load('mongo_set_db_index.js')


db.v5_user.ensureIndex({username:1},{unique:true});
db.v5_name_list.ensureIndex({name:1},{unique:true});